package com.eoner.baselibrary.utils;

import android.app.Activity;
import android.view.View;

public class ViewFindUitl {

    /**
    * findViewById to Activity
    * */
    public static <T extends View> T f(Activity activity, int id) {
        return activity.findViewById(id);
    }

    /**
     * findViewById to View
     * */
    public static <T extends View> T f(View view, int id) {
        return view.findViewById(id);
    }

}
